using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;

namespace LenninSoftware.FormEditor
{
    public class SPFieldInfo: FieldInfo
    {
        private SPField _field;

        public SPFieldInfo(SPField field)
        {
            _field = field;
        }

        public SPField InternalField
        {
            get
            {
                return _field;
            }
        }

        public string Title
        {
            get
            {
                return _field.Title;
            }
        }

        public bool Required
        {
            get
            {
                return _field.Required;
            }
        }

        public string StaticName
        {
            get
            {
                return _field.StaticName;
            }
        }

        public string Description
        {
            get
            {
                return _field.Description;
            }
        }

        public string InternalName
        {
            get
            {
                return _field.InternalName;
            }
        }

        public SPFieldType FieldType
        {
            get
            {
                return _field.Type;
            }
        }

        public string TypeAsString
        {
            get
            {
                return _field.TypeAsString;
            }
        }
        
    }
}
